﻿using System;
using Sliver.Network.WebSocket;

namespace Sliver.Network.IOC
{
    public class HttpHandler : Attribute
    {

    }

    public class WebSocketController : Attribute
    {
        public string Path;

        public WebSocketController(string path)
        {
            Path = path;
        }
    }

    public class WebSocketMessageHandler : Attribute
    {
        public readonly string Type;

        public readonly string Path;

        public WebSocketMessageHandler(string path)
        {
            Type = WebSocketMessageType.Info;
            Path = path;
        }

        public WebSocketMessageHandler(string type, string path)
        {
            Type = type;
            Path = path;
        }
    }
}
